<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>IN ADMIN PANEL | Powered by INDEZINER</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="clockp.js"></script>
<script type="text/javascript" src="clockh.js"></script> 
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="ddaccordion.js"></script>
<script type="text/javascript">
ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
</script>

<script type="text/javascript" src="jconfirmaction.jquery.js"></script>
<script type="text/javascript">
	
	$(document).ready(function() {
		$('.ask').jConfirmAction();
	});
	
</script>

<script language="javascript" type="text/javascript" src="niceforms.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="niceforms-default.css" />

</head>
<body>
<div id="main_container">

	<div class="header">
    <div class="logo"><a href="#"><img src="images/logo.gif" alt="" title="" border="0" /></a></div>
    
    <div class="right_header">Welcome Admin,| <a href="login.php" class="logout">Logout</a></div>
    <div id="clock_a"></div>
    </div>
    
    <div class="main_content">
    
                    <div class="menu">
                    <ul>
                    <li><a class="current" href="index.html">Home</a></li>
                    <li><a href="form_hrpp.php">Add New HRPP</a>
                    <li><a href="update_main.php">Change Status</a>
                    <li><a href="upload_main.php">Upload Attachments</a></li>
                    </ul>
                    </div>               
                    
                    
                    
    <div class="center_content">  
    
    
    
    <div class="left_content">
    
    		
            <div class="sidebarmenu">
            
                <a class="menuitem submenuheader" href="">Menu</a>
                <div class="submenu">
                    <? include ("connectdb.php");
					$tbl_name="hrpp";
					?>
					<ul>
        					<li><a href="home.php">List of HRPP</a>
        					<?
        					$sql="SELECT distinct category FROM $tbl_name";
        					$result=mysql_query($sql);
        					while($rows=mysql_fetch_array($result)){
        					?>
        					<li><?php echo '<a href="selectcate.php?category='.$rows['category'].'" target="MAIN-WINDOW">'.$rows['category'].'</a>';?>
        					<?}
        					mysql_close();
        					?>
					<ul>
                </div>
            </div>
    </div>  
  <div class="right_content">
  <?
	include("connectdb.php");

	$tbl_name="hrpp";
	?>
<body>
<b>List of Human Resource Policies and Procedures</b><br><br>
	<span OnClick = "scheme.style.display = '';" >[+]</span>
	<span OnClick = "scheme.style.display ='none';" >[-]</span>
	Scheme of Service <br>
	<div ID="scheme" style="display: none;">
	<font size="-1">
<? 
$sql="SELECT * FROM $tbl_name where category='Scheme of Service'";
$result=mysql_query($sql);

// Start looping rows in mysql database.
while($rows=mysql_fetch_array($result)){
?>
<li><? echo $rows['title']; ?></li><? } ?>
	</font>
	</div>

	<span OnClick = "general.style.display = '';" >[+]</span>
	<span OnClick = "general.style.display ='none';" >[-]</span>
	General <br>
	<div ID="general" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='General'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "wage.style.display = '';" >[+]</span>
	<span OnClick = "wage.style.display ='none';" >[-]</span>
	Wage, Salary and Allowance <br>
	<div ID="wage" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Wage, Salary and Allowance'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "sd.style.display = '';" >[+]</span>
	<span OnClick = "sd.style.display ='none';" >[-]</span>
	Staff Developement <br>
	<div ID="sd" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Staff Developement'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "sp.style.display = '';" >[+]</span>
	<span OnClick = "sp.style.display ='none';" >[-]</span>
	Staff Performance<br>
	<div ID="sp" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Staff Performance'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "attendance.style.display = '';" >[+]</span>
	<span OnClick = "attendance.style.display ='none';" >[-]</span>
	Attendance <br>
	<div ID="attendance" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Attendance'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "leave.style.display = '';" >[+]</span>
	<span OnClick = "leave.style.display ='none';" >[-]</span>
	Leave<br>
	<div ID="leave" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Leave'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "benefit.style.display = '';" >[+]</span>
	<span OnClick = "benefit.style.display ='none';" >[-]</span>
	Employee Benefits and Incentives<br>
	<div ID="benefit" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Employee Benefits and Incentives'";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
</font>
	</div>

	<span OnClick = "promotion.style.display = '';" >[+]</span>
	<span OnClick = "promotion.style.display ='none';" >[-]</span>
	Promotion<br>
	<div ID="promotion" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Promotion'";
$result=mysql_query($sql);

// Start looping rows in mysql database.
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "asset.style.display = '';" >[+]</span>
	<span OnClick = "asset.style.display ='none';" >[-]</span>
	Asset Declaration<br>
	<div ID="asset" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Asset Declaration'";
$result=mysql_query($sql);

// Start looping rows in mysql database.
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>

	<span OnClick = "employ.style.display = '';" >[+]</span>
	<span OnClick = "employ.style.display ='none';" >[-]</span>
	Employment<br>
	<div ID="employ" style="display: none;">
	<font size="-1">
<?
$sql="SELECT * FROM $tbl_name where category='Employment'";
$result=mysql_query($sql);

// Start looping rows in mysql database.
while($rows=mysql_fetch_array($result)){
?>
<li><?php echo '<a href="select.php?id='.$rows['id'].'" target="MAIN-WINDOW">view</a>  ';echo $rows['title'];?></li><? } ?>
	</font>
	</div>
  </div>

                    
  </div>   <!--end of center content -->               

                    
    
    
    <div class="clear"></div>
    </div> <!--end of main content-->
	
    
    <div class="footer">
    
    	<div class="left_footer">IN ADMIN PANEL | Powered by <a href="http://indeziner.com">INDEZINER</a></div>
    	<div class="right_footer"><a href="http://indeziner.com"><img src="images/indeziner_logo.gif" alt="" title="" border="0" /></a></div>
    
    </div>

</div>		
</body>
</html>